<?php
/*
 * zh_article表的验证器
 */

namespace app\common\validate;
use think\Validate;

class Article extends Validate
{
    protected $rule = [
        'title|标题'=>'require|length:3,20|chsAlphaNum',
//        'title_img|标题图片'=>'require',
        'content|内容'=>'require',
        'user_id|作者'=>'require',
        'cate_id|栏目名称'=>'require',
    ];
}